// pages/Payment/Payment.js
var app = getApp();
var util = require('../../../utils/md5.js');
var utils = require('../../../utils/util.js');

Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    //过个参数
    let paymentInfo =wx.getStorageSync('paymentInfo')
    paymentInfo.pay_time = utils.formatTime(paymentInfo.pay_time, 'Y-M-D h:m:s')
    this.setData({
      paymentInfo: paymentInfo
    })
  }, 
  look(){
    wx.redirectTo({
      url: '/pages/onNewPages/myOrder/myOrder?type=2',
    })
  },
  back(){
    wx.switchTab({
      url: '/pages/onNewPages/index/index',
    })
  },
  onReady: function () {},
  onShow: function () {},
  onHide: function () {},
  onUnload: function () {},
})